import request from '../utils/request'

/**
 * 获取菜单权限数据列表
 */
export const getMenuListApi = (data) => {
  return request({
    url: '/user/getmenu',
    method: 'GET',
    params: data,
  })
}

/**
 * 菜单权限数据修改
 */
export const setMenuApi = (data) => {
  return request({
    url: '/user/setmenu',
    method: 'POST',
    data,
  })
}

/**
 * 获取菜单权限列表
 */
export const getMenuApi = (data) => {
  return request({
    url: '/menu/list',
    method: 'GET',
    params: data,
  })
}
